<?php

class PayModel extends Model 
{
	private $_obj = null;

	public function __construct()
	{
		if($this->_obj == null){
			$this->_obj = M('Order_pay');
		}
	}

	public function getPayDetail($options)
	{
		return $this->_obj->where($options)->find();
	}

	public function addPay($params)
	{
		return $this->_obj->add($params);
	}

	public function get()
	{
		return $this->_obj->select();
	}
}
